package org.jeecg.modules.analysisachievement.achstudent.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.analysisachievement.achstudent.mapper.AchStudentSubjectScoreMapper;
import org.jeecg.modules.analysisachievement.achstudent.vo.AchStudentExaminationScoreVo;
import org.jeecg.modules.analysisachievement.achstudent.mapper.AchStudentExaminationScoreMapper;
import org.jeecg.modules.analysisachievement.achstudent.service.IAchStudentExaminationScoreService;
import org.jeecg.modules.analysisachievement.achstudent.vo.AchStudentSubjectScoreVo;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @Description: v_ach_student_examination_score
 * @author: baochangrong
 * @Date:   2022-04-12
 * @Version: V1.0
 */
@Service
public class AchStudentExaminationScoreServiceImpl extends ServiceImpl<AchStudentExaminationScoreMapper, AchStudentExaminationScoreVo> implements IAchStudentExaminationScoreService {
    @Resource
    AchStudentExaminationScoreMapper achStudentExaminationScoreMapper;
    @Override
    public IPage<AchStudentExaminationScoreVo> queryAchStudentExaminationScoreVoLists(@Param("achStudentExaminationScoreVo") AchStudentExaminationScoreVo achStudentExaminationScoreVo, @Param("queryParam") Map<String,String> queryParam, Page<AchStudentExaminationScoreVo> page){
        //获取该租户下所有数据
        List<AchStudentExaminationScoreVo> achStudentExaminationScoreVoList = achStudentExaminationScoreMapper.queryAchStudentExaminationScoreVoLists(achStudentExaminationScoreVo,queryParam);

        return page.setRecords(achStudentExaminationScoreVoList);
    }
}
